export default {
  namespaced: true,
  state: {
    menusCountChange: false,
    isChange: false,
  },
  actions: {
    changeCount({ commit }) {
      commit("SET_COUNT_CHANGE");
    },
  },
  mutations: {
    SET_COUNT_CHANGE: (state) => {
      console.log("🚀 ~ state:", state);
      if (!state.isChange) {
        state.isChange = true;
        state.menusCountChange = !state.menusCountChange;
        setTimeout(() => {
          state.isChange = false;
        }, 1000);
      }
    },
  },
};
